import QtQuick 2.15
import QtQuick.Controls 2.15

Rectangle {
    id: goodsPage

    anchors.fill: parent

    Rectangle {
        id: goodsPageHeaderView
        anchors.left: parent.left
        anchors.top: parent.top
        anchors.right: parent.right
        height: 250
        color: "#424852"

        Flow {
            spacing: 10 // 元素之间的距离
            anchors.top: parent.top
            anchors.topMargin: 10
            anchors.right: parent.right
            anchors.left: parent.left
            anchors.leftMargin: 10
            anchors.rightMargin: 10
            Input{
                id: noInput
                cInputLabelText: "商品编码"
                cPlaceholderTextValue: "请输入商品编码"
                cInputlabelWidth: 90
            }

            Input{
                id: nameInput
                cInputLabelText: "商品名称"
                cPlaceholderTextValue: "请输入商品名称"
                cInputlabelWidth: 90
            }
        }


        Row {
            spacing: 10 // 元素之间的距离
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 10
            anchors.right: parent.right
            anchors.rightMargin: 10
            CButton {
                id: searchBtn
                textValue: "搜索"
            }
            CButton {
                id: addBtn
                textValue: "新增"
            }

        }
    }

    CTableView{
        anchors.left: parent.left
        anchors.top: goodsPageHeaderView.bottom
        anchors.bottom: parent.bottom
        anchors.right: parent.right
    }

}
